package com.wmh.baseservice.system.service.impl;

import com.wmh.baseservice.system.entity.GoodsFlowAnalysis;
import com.wmh.baseservice.system.mapper.GoodsFlowAnalysisMapper;
import com.wmh.baseservice.system.service.GoodsFlowAnalysisService;
import com.wmh.baseservice.common.mybatisplus.methods.CommonServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author wmh generator
 * @since 2022-05-27
 */
@Service
public class GoodsFlowAnalysisServiceImpl extends CommonServiceImpl<GoodsFlowAnalysisMapper, GoodsFlowAnalysis> implements GoodsFlowAnalysisService {

    @Resource
    private GoodsFlowAnalysisMapper goodsFlowAnalysisMapper;

    @Override
    public List<GoodsFlowAnalysis> getDataByDate(Map<String, Object> map) {
        return goodsFlowAnalysisMapper.getDataByDate(map);
    }

    @Override
    public List<GoodsFlowAnalysis> getSource(Long id, String source) {
        return goodsFlowAnalysisMapper.getSource(id,source);
    }
}
